import request from '@/utils/request'

// 查询用户提现列表
export function listUserWithdraw(query) {
  return request({
    url: '/system/userWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询用户提现详细
export function getUserWithdraw(withdrawId) {
  return request({
    url: '/system/userWithdraw/' + withdrawId,
    method: 'get'
  })
}

// 新增用户提现
export function addUserWithdraw(data) {
  return request({
    url: '/system/userWithdraw',
    method: 'post',
    data: data
  })
}

// 修改用户提现
export function updateUserWithdraw(data) {
  return request({
    url: '/system/userWithdraw',
    method: 'put',
    data: data
  })
}

// 删除用户提现
export function delUserWithdraw(withdrawId) {
  return request({
    url: '/system/userWithdraw/' + withdrawId,
    method: 'delete'
  })
}

// 导出用户提现
export function exportUserWithdraw(query) {
  return request({
    url: '/system/userWithdraw/export',
    method: 'get',
    params: query
  })
}